<?php

namespace app\api\validate;

use think\Validate;

/**
 * 聊天验证
 */
class ChatValidate extends  Validate
{
    protected $rule = [
        'receive_id' => 'require',
        'content' => 'require',

    ];

    protected $message = [
        'receive_id.require' => '请选择聊天者',
        'content.require' => '请输入聊天内容',

    ];

    protected $scene = [
        'add' => ['receive_id','type'],
        'info' => ['receive_id'],
    ];
}